<?php
/**
 * 提交手机注册信息接口验证类
 * User: 苏近之
 * Date: 2019-03-24
 * Time: 00:01
 */

namespace app\user\validator;

use app\common\base\ApiValidator;

class PersonAccountRegisterWithPhone extends ApiValidator
{

    protected $rule = [
        'phone' => 'require|mobile',
        'verifyCode' => 'require|integer|between:1000,9999'
    ];

    protected $message = [
        'phone.require' => '手机号必填',
        'phone.mobile' => '手机号格式不正确',
        'verifyCode.require' => '验证码必填',
        'verifyCode.integer' => '验证码错误',
        'verifyCode.between' => '验证码错误',
    ];
}